//
//  UIButton+Extension.swift
//  新浪微博
//
//  Created by 胡不归是大虾 on 16/9/24.
//  Copyright © 2016年 胡不归是大虾. All rights reserved.
//

import UIKit
extension UIButton
{
    convenience init(title:String,font:CGFloat,color:UIColor) {
        self.init()
        setTitle(title, for: .normal)
        setTitleColor(color, for: .normal)
        titleLabel?.font = UIFont.systemFont(ofSize: font)
        sizeToFit()
    }
}
